var http = require("http");
var fs = require("fs");

var server = http.createServer(function(req , res ){
	var htmlPage = fs.readFile("index.html", "utf8",function(err , data){
		if (err) {
			console.log(err);
		}else{
			res.writeHead(200 , {"Content-Type" : "text/html"});
			res.end(data);
		}
	});
});

server.listen(8888);
console.log("Your server is started @ http://localhost:8888");